home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 23
/
AMIGAplus Sonderheft 23 (2000)(Falke)(DE)[!].iso
/
Updates
/
Hardware
/
DCF77update
/
diskarchiv.lha
/
DCF77
/
Developer
/
DCF77 state check
next >
Wrap
Text File
|
1999-12-15
|
1KB
|
29 lines
DCF77: How to check the receiver state
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
You can check the receiver state by using the public semaphore "DCF77 State".
struct DCF77StateList
{
struct SignalSemaphore sl_Semaphore; // the Semaphore "DCF77 State"
STRPTR Version; // Pointer to DCF77 version number
BOOL Received; // FALSE: no DCF77 time | TRUE: system clock was set by DCF77.
// The values below are introduced with DCF77 version 2.18:
LONG ReceiverState; // 0 - No signal. 1 - Receiving disturbance.
// 2 - Wait for synchronization. 3 - Receiving.
// 4 - Program inactive.
LONG TimeLeft; // expected time left [s] to finish off
LONG LastError; // not yet implemented
};
The source code of the shell commands in this drawer contains example code for
the check of the DCF77 receiver state. WaitDCF77ifCrash uses all possible
functions.